From: Florian Müllner Date: Wed, 19 Feb 2020 13:24:51 +0000 (+0100) Subject: unlockDialog: Simplify sensitivity handling X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~772^2^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c6cf81f28b20227c30eba8fc22da6e61e1cc83e6;p=gnome-shell.git unlockDialog: Simplify sensitivity handling We only call _updateSensitivity() to make elements sensitive, and nothing ever touches the sensitivity of the switch-user button; so just call the corresponding authPrompt method directly, which is the only bit that has an actual effect. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1029 --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 14bd972d6..43d3bdbdb 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -666,7 +666,7 @@ var UnlockDialog = GObject.registerClass({ this._promptBox.add_child(this._authPrompt); this._authPrompt.reset(); - this._updateSensitivity(true); + this._authPrompt.updateSensitivity(true); } _maybeDestroyAuthPrompt() { @@ -682,13 +682,6 @@ var UnlockDialog = GObject.registerClass({ } } - _updateSensitivity(sensitive) { - this._authPrompt.updateSensitivity(sensitive); - - this._otherUserButton.reactive = sensitive; - this._otherUserButton.can_focus = sensitive; - } - _showClock() { if (this._activePage === this._clock) return;